package com.bprogram.controller;

import com.bprogram.pojo.Partion;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "COMMENT")
public interface CommentFeign {


    /**
     * 根据视频id计算评论总数
     * @param videoId
     * @return
     */
    @GetMapping("/comment/getCounts")
    public long getCounts(@RequestParam("videoId") long videoId);




    /**
     * 根据wrapper删除评论
     * @param videoId
     * @return
     */
    @GetMapping("/comment/deleteComment")
    public boolean deleteComment(@RequestParam("videoId") long videoId);
}
